<!DOCTYPE html>
<html>
<head>
<title></title> #parse("sys/header.html")
</head>
<!-- <script>
	function ss() {
		$("#asd")
				.after(
						'<div class="form-group"><div class="col-sm-2 control-label"> <input type="text"  class="form-control"  style="border:none; text-align:right" value="'
								+ $("#cc").val()
								+'"></div><div class="col-sm-10 control-label"> <input type="text" class="form-control" value="'
								+ $("#dd").val() + '"></div></div>')
		$("#bb").click();
	}
</script> -->
<body>
	<div id="rrapp" v-cloak>
		<div v-show="showList">
			<div class="grid-btn">
				#if($shiro.hasPermission("scene:save")) <a class="btn btn-primary"
					@click="add"><i class="fa fa-plus"></i>&nbsp;新增</a> #end
				#if($shiro.hasPermission("scene:update")) <a class="btn btn-primary"
					@click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
				#end #if($shiro.hasPermission("scene:delete")) <a
					class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
				#end
			</div>
			<table id="jqGrid"></table>
			<div id="jqGridPager"></div>
		</div>

		<div v-show="!showList" class="panel panel-default">
			<div class="panel-heading">{{title}}</div>
			<form class="form-horizontal" id="scene">
				<div class="form-group">
					<div class="col-sm-2 control-label">平台名称</div>
					<div class="col-sm-10">
						<input type="text" class="form-control" v-model="scene.sceneName"
							placeholder="平台名称" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">平台标识名称</div>
					<div class="col-sm-10">
						<input type="text" class="form-control" v-model="scene.sceneCode"
							placeholder="平台标识名称" />
					</div>
				</div>
				<div class="form-group" id="asd">
					<div class="col-sm-2 control-label">标志位</div>
					<div class="col-sm-10">
						<input type="text" class="form-control" v-model="scene.channelId"
							placeholder="标志位" />
					</div>
				</div>
				 <div class="form-group">
					<div class="col-sm-2 control-label">场景</div>
					<div class="col-sm-10">
						<label v-for="service in serviceList" class="radio-inline">
							<input type="radio" :value="service.serviceId" name="radio"
							v-model="scene.serviceId" datatype="*">{{service.serviceName}}
						</label>
					</div>
				</div> 
				<div class="form-group">
					<div class="col-sm-2 control-label"></div>
					<input type="button" class="btn btn-primary" @click="saveOrUpdate"
						value="确定" /> &nbsp;&nbsp;<input type="button"
						class="btn btn-warning" @click="reload" value="返回" />
				</div>
				<!-- Button trigger modal -->
				 <button type="button" class="btn btn-primary btn-sm"
					data-toggle="modal" data-target="#myModal">添加属性</button> -->

				<!-- Modal -->
			 <div class="modal fade" id="myModal" tabindex="-1" role="dialog"
					aria-labelledby="myModalLabel">
					<div class="modal-dialog" role="document">
						<div class="modal-content">
							<div class="modal-header" >
								<button type="button" id="bb" class="close" data-dismiss="modal"
									aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
								<h4 class="modal-title " id="myModalLabel">添加属性</h4>
							</div>
							<div class="modal-body">
								<table id="tab11" style="display: none">
		<tbody>
			<tr>
				<td align="center">
					<input type="text" name="start_end_time" /></td>
				<td align="center">
					<input type="text" name="unit_department" /></td>
				<td align="center">
					<input type="text" name="post" /></td>
				<td>
					<input type="button" id="Button1" onClick="deltr(this)" value="删行">
				</td>
			</tr>
		</tbody>
	</table>
	<input type="button" id="btn_addtr" value="增加">
	<table id="dynamicTable"  border="0" cellspacing="0" cellpadding="0">
		<thead>
			<tr>
 				<td align="center" bgcolor="#CCCCCC">属性名称</td>
				<td align="center" bgcolor="#CCCCCC">属性值</td>
				<td align="center" bgcolor="#CCCCCC">是否必须</td>
				<td></td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td align="center">
					<input type="text" name="start_end_time" /></td>
				<td align="center">
					<input type="text"  name="unit_department" /></td>
				<td align="center">
					<input type="text" name="post" /></td>
				<td>
					<input type="button" id="Button2" onClick="deltr(this)" value="删除">
				</td>
			</tr>
		</tbody>
	</table>
								

							</div>
							<div class="modal-footer">
								<button type="button" class="btn btn-default"
									data-dismiss="modal">Close</button>
								<button type="button" class="btn btn-primary" onclick="ss()">添加属性</button>
							</div>
						</div>
					</div>
				</div>

			</form>
		</div>
	</div>

	<script src="${rc.contextPath}/js/sys/scene.js?_${date.systemTime}"></script>
</body>
</html>